package com.dongman.model;

import lombok.Data;
import java.util.Date;
import java.util.List;

/**
 * 小说的基本信息
 */
@Data
public class Chapter {

    //顺序就是按照id排序，小的在前面
    private String id;

    private Date createDate;

    private Date updateDate;

    //章节名字
    private String chapterName;

    //章节地址
    private String chapterUrl;

    //小说id
    private String novelId;

    //是否VIP 0代表不是VIP， 1是代表VIP
    private String vip;

    private List<ChapterPic> chapterPic;


    public Chapter(String id, Date createDate, Date updateDate,
                   String chapterName, String chapterUrl, String novelId, String vip) {
        this.id = id;
        this.createDate = createDate;
        this.updateDate = updateDate;
        this.chapterName = chapterName;
        this.chapterUrl = chapterUrl;
        this.novelId = novelId;
        this.vip = vip;
    }

    public Chapter(String id, Date createDate, Date updateDate, String chapterName, String chapterUrl, String novelId, String vip, List<ChapterPic> chapterPic) {
        this.id = id;
        this.createDate = createDate;
        this.updateDate = updateDate;
        this.chapterName = chapterName;
        this.chapterUrl = chapterUrl;
        this.novelId = novelId;
        this.vip = vip;
        this.chapterPic = chapterPic;
    }



    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getChapterName() {
        return chapterName;
    }

    public void setChapterName(String chapterName) {
        this.chapterName = chapterName;
    }

    public String getChapterUrl() {
        return chapterUrl;
    }

    public void setChapterUrl(String chapterUrl) {
        this.chapterUrl = chapterUrl;
    }

    public String getNovelId() {
        return novelId;
    }

    public void setNovelId(String novelId) {
        this.novelId = novelId;
    }

    public String getVip() {
        return vip;
    }

    public void setVip(String vip) {
        this.vip = vip;
    }

    public List<ChapterPic> getChapterPic() {
        return chapterPic;
    }

    public void setChapterPic(List<ChapterPic> chapterPic) {
        this.chapterPic = chapterPic;
    }

    /*public String toString() {
        System.out.println("创建时间：" + this.createDate);
        System.out.println("更新时间：" + this.updateDate);
        System.out.println("章节名字：" + this.chapterName);
        System.out.println("章节地址：" + this.chapterUrl);
        System.out.println("小说Id：" + this.novelId);
        System.out.println("章节Id：" + this.id);
        System.out.println();
        return "";
    }*/
}
